import { px2rem } from "@/assets/global-style";
import styled from "styled-components";

export const Wrapper =styled.div`
    background-color: white;
    .search_bar_wrapper{
        display: flex;
        align-items: center;
        justify-content: space-between;
        .search_bar{
            display: flex;
            align-items: center;
            height: ${px2rem(40)};
            width: ${px2rem(300)};
            background-color:  #f0f0f0;
            border-radius: ${px2rem(20)};
            margin: ${px2rem(4)} ${px2rem(12)};
            .search_icon{
                font-size: ${px2rem(24)};
                font-weight: bold;
                color: gray;
                padding: 0 ${px2rem(4)} 0 ${px2rem(12)};
            }
            .search_input{
                input{
                    border: none;
                    outline: none;
                    height: ${px2rem(36)};
                    font-size: ${px2rem(16)};
                    line-height: ${px2rem(36)};
                    font-weight: bold;
                    letter-spacing: ${px2rem(2)};
                    background-color: #f0f0f0;

                } 
            }
            .icon_delete{
                color: #b9b9b9;
                padding-left: ${px2rem(12)};
            }
        }
        .search_cancel{
            font-size: ${px2rem(16)};
            padding-right: ${px2rem(12)};
        }
    }
`
export const HotWordWrapper=styled.div`
    margin: ${px2rem(8)} ${px2rem(12)};
    .wrapper_title{
        font-size: ${px2rem(16)};
    }
    .hotword_wrapper{
        display: flex;
        flex-wrap: wrap;
        .hotword_item{
            height: ${px2rem(28)};
            line-height: ${px2rem(28)};
            font-size: ${px2rem(14)};
            text-align: center;
            border-radius: ${px2rem(14)};
            background-color: #f0f0f0;
            padding: 0 ${px2rem(12)};
            margin: ${px2rem(4)};
        }
    }
`

export const HotCourseWrapper=styled.div`
    display: flex;
    overflow-x: auto ;
    
    .hotcourse_wrapper{
        flex: 1;
        flex-basis: ${px2rem(280)};
        flex-shrink: 0;
        color: #111;
        margin-left: ${px2rem(16)};
        background-image: linear-gradient(to bottom,rgba(255,200,200,1),rgba(255,220,220,0.5),rgba(255,255,255,0));
        border-radius: ${px2rem(16)};
        .hotcourse_title{
            font-weight: bold;
            background-image:-webkit-linear-gradient(bottom,red,#fd8403,yellow);
            -webkit-background-clip:text;
            -webkit-text-fill-color:transparent;
            padding: ${px2rem(12)} 0 0 ${px2rem(12)};
        }
    }
`
